'use strict'

class goods{
    constructor(mdb){
        this.db=mdb
        this.tablename='paihangbang'
    }
    model(){
        return this.db.model(this.tablename)
    }
    
    async list () {
        let ulist = await this.model().limit(20).select()
        return ulist.rows
    }
}
module.exports=goods